import { axios } from '@/utils/request'

/**
 * 商户管理
 */

export function selectPage (parameter) {
  return axios({
    url: '/shop/storetest/selectPage',
    method: 'post',
    params: parameter
  })
}

export function saveOrUpdate (parameter) {
  return axios({
    url: '/shop/storetest/saveOrUpdate',
    method: 'post',
    data: parameter
  })
}

export function del (parameter) {
  return axios({
    url: '/shop/storetest/' + parameter + '/delete',
    method: 'get'
  })
}

export function selectAllStore (parameter) {
  return axios({
    url: '/shop/storetest/selectAllStore',
    method: 'get',
    params: parameter
  })
}

export function selectH5Store () {
  return axios({
    url: '/shop/storetest/selectH5Store',
    method: 'get'
  })
}
export function selectWangyinStore () {
  return axios({
    url: '/shop/storetest/selectWangyinStore',
    method: 'get'
  })
}
export function entPay (parameter) {
  return axios({
    url: '/shop/storetest/entPay',
    method: 'post',
    params: parameter
  })
}

export function deleteCustomerStore (parameter) {
  return axios({
    url: '/shop/storetest/' + parameter + '/deleteCustomerStore',
    method: 'get'
  })
}


export function selectByCustomerId (parameter) {
  return axios({
    url: '/shop/storetest/selectByCustomerId',
    method: 'post',
    params: parameter
  })
}
export function saveCustomerStore (parameter) {
  return axios({
    url: '/shop/storetest/saveCustomerStore',
    method: 'post',
    data: parameter
  })
}

